From: Balló György Date: Wed, 9 Apr 2025 22:28:43 +0000 (+0200) Subject: extensions-app: Don't create window in startup phase X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~139^2^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fddcfcd6c810beaa557a7dee5da36b1f7f9dacf6;p=gnome-shell.git extensions-app: Don't create window in startup phase This fixes the problem that the process does not exit after timeout when running as GApplication service. Part-of: --- diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js index c164c514f..07a5130bb 100644 --- a/subprojects/extensions-app/js/main.js +++ b/subprojects/extensions-app/js/main.js @@ -28,6 +28,10 @@ class Application extends Adw.Application { vfunc_activate() { this._extensionManager.checkForUpdates(); + + if (!this._window) + this._window = new ExtensionsWindow({application: this}); + this._window.present(); } @@ -37,15 +41,13 @@ class Application extends Adw.Application { this.add_action_entries( [{ name: 'quit', - activate: () => this._window.close(), + activate: () => this._window?.close(), }]); this.set_accels_for_action('app.quit', ['q']); this.set_accels_for_action('window.close', ['w']); this._extensionManager = new ExtensionManager(); - - this._window = new ExtensionsWindow({application: this}); } });